package cn.tedu.charging.order.feign;

import cn.tedu.charging.common.pojo.JsonResult;
import cn.tedu.charging.common.pojo.param.ChargingProcessParam;
import cn.tedu.charging.common.pojo.vo.ChargingProcessVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
/**
 * 访问计价服务的 feign 客户端
 */
@FeignClient(name = "costService")
public interface CostClient {
    @PostMapping("/cost/calculate")
    JsonResult<ChargingProcessVO>
    calculateCost(@RequestBody ChargingProcessParam chargingProcessParam);
}
